﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace StockManagement.Models
{
    public class Vendor
    {
        public Guid VendorID {get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }

        public Vendor(DataRow row)
        {
            VendorID = (Guid)row["VendorID"];
            FirstName = row["FirstName"].ToString();
            LastName = row["LastName"].ToString();
        }

        public Vendor()
        {
            VendorID = Guid.NewGuid();
            FirstName = string.Empty;
            LastName = string.Empty;
        }

    }
}
